<template>
  <el-dialog title="电工选择" :visible.sync="dialogshow" width="95%" :before-close="handleClose">
    <el-row>
      <el-col :span="12">
        <electrician-select @addElec="addElec" />
      </el-col>
      <el-col :span="12" style="padding-left: 20px">
        <electricianDelete ref="deleteElec" />
      </el-col>
    </el-row>
  </el-dialog>
</template>
<script>
import electricianSelect from './select'
import electricianDelete from './delete'
export default {
  components: { electricianSelect, electricianDelete },
  props: {
    dialogshow: {
      type: Boolean,
      default: () => false
    }
  },
  data() {
    return {
      smsTypeList: [],
      tablebtn: 'mini',
      listLoading: false,
      list: []
    }
  },
  methods: {
    addElec(list) {
      this.$store.dispatch('sms/setSmsElectricianList', list)
    },
    handleClose(done) {
      this.$emit('close')
      this.loading = false
    }
  }
}
</script>
